<script>
import { getToken, getUserInfo, getAppletInfo } from '@/utils/auth.js';
import { USER_LOGIN, APPLE_INFO } from '@/store/modules/user/mutations-type.js';
export default {
	onLaunch: function() {
		console.log('App Launch');
		// const userInfo = getUserInfo();
		// const appletInfo = getAppletInfo();
		// if (userInfo) {
		// 	this.$store.commit('user/' + USER_LOGIN, userInfo);
		// }
		// if (appletInfo) {
		// 	this.$store.commit('user/' + APPLE_INFO, appletInfo);
		// }
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/* 解决头条小程序组件内引入字体不生效的问题 */
/* #ifdef MP-TOUTIAO */
@font-face {
	font-family: uniicons;
	src: url('/static/uni.ttf');
}
/* #endif */

/* uview css */
@import 'uview-ui/index.scss';
</style>
